package wlf.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import wlf.pojo.Admin;
import wlf.pojo.Permission;

public interface PermissionMapper {
	
	@Select("select * from permission where id in(select pid from role_permission where rid in(select rid from admin_role where aid=#{id}))")
	List<Permission> selPermissionByAdmin(Admin admin);
}
